import { lazy } from "react";
import { Navigate } from "react-router-dom";
const Detail = lazy(() => import('../pages/ProDetail'));
const List = lazy(() => import('../pages/ProList'));
const Task = lazy(() => import('../pages/ProTask'));
// 定义路由
export const RouterList = [
	{
		path: '/project/detail',
		element: <Detail />,
	},
	{
		path: '/project/list',
		element: <List />,
	},
	{
		path: '/project/task',
		element: <Task />,
	},
	{
		index: true,
		element: <Navigate to="/project/list" replace />,
	}
];